﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using YasharEl.Infrastructure.Core.Prototype;
using YasharEl.Infrastructure.EntityModel;

namespace YasharEl.Infrastructure.Core.EntityModel.Prototype
{
    public class PropertyDefinitionEntity : Entity, IPropertyDefinition
    {
        #region IPropertyDefinitionEntity Properties

        public virtual long PropertyDefinitionId { get; protected set; }

        public virtual string Key { get; protected set; }

        public virtual string Name { get; protected set; }

        public virtual string Description { get; protected set; }

        public virtual string DisplayName { get; protected set; }

        public virtual DataType DataType { get; protected set; }

        #endregion

        #region AbstractEntity<long> Overrides

        public override long Id
        {
            get
            {
                return PropertyDefinitionId;
            }
            protected set
            {
                PropertyDefinitionId = value;
            }
        }

        #endregion
    }
}
